package com.hc.demo_api820.exception;
/**
 * 对APP运行过程中产生的正常的业务异常进行枚举
 * */
//确定某种东西的类别再二之上就可以枚举
public enum TijianExceptionEnum {
    MOBILE_NOT_REGISTER(1001,"该手机号未注册"),
    RASSWORD_IS_WRONG(1002,"密码错误，请重新输入"),
    SYSTEM_ERROR(1003,"系统错误"),
    MOBILE_ALREADY_REGISTER(1004,"手机号已经注册"),
    PARAMETER_FORMAT_ERROR(1008,"参数错误"),
    ALREADY_APPOINTMENT(1005,"当天已经有预约，无需重新预约"),
    NOT_HAVE_REMAINOER_MUMBER(1006,"当天已经无号");


    private Integer enCode;
    private String enMessage;

    TijianExceptionEnum(Integer enCode, String enMessage) {
        this.enCode = enCode;
        this.enMessage = enMessage;
    }

    TijianExceptionEnum() {

    }

    public Integer getEnCode() {
        return enCode;
    }

    public void setEnCode(Integer enCode) {
        this.enCode = enCode;
    }

    public String getEnMessage() {
        return enMessage;
    }

    public void setEnMessage(String enMessage) {
        this.enMessage = enMessage;
    }
}
